//输入三个数，按照从小到大的方式输出三个数

package ZUOYE0417;

import java.util.Scanner;

public class 作业二 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("情输入第一个数：");
		double a = in.nextDouble();
		System.out.println("情输入第二个数：");
		double b = in.nextDouble();
		System.out.println("情输入第三个数：");
		double c = in.nextDouble();

		if (a < b) {
			if (a < c) {
				System.out.print(a + "\t");
				if (b < c) {
					System.out.println(b + "\t" + c);
				} else {
					System.out.println(c + "\t" + b);
				}
			} else {
				System.out.println(c + "\t" + a + "\t" + b);
			}
		} else {
			if (b > c) {
				System.out.println(c + "\t" + b + "\t" + a);
			} else {
				if (a > c) {
					System.out.println(b + "\t" + c + "\t" + a);
				} else {
					System.out.println(b + "\t" + a + "\t" + c);
				}
			}
		}
	}
}
